package com.ihr360.insurance.model.type;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ihr360.commons.serializer.jackson.EnumDataSerializer;

/** 社保缴纳策略 */
@JsonSerialize(using = EnumDataSerializer.class)
public enum BenefitStrategy {
    /**
     * 当月缴当月社保
     */
    CURRENT("当月缴当月", 0),
    /**
     * 当月缴纳下月社保
     */
    NEXT("当月缴下月", 1),
    /**
     * 当月缴纳上月社保
     */
    LAST("当月缴上月", -1),
    /**
     * 当月缴纳上上月报表
     */
    BEFORE_LAST("当月缴上上月", -2);

    private String title;

    private int calcMouth;

    BenefitStrategy(String title, int calcMouth) {
        this.title = title;
        this.calcMouth = calcMouth;
    }

    public String getTitle() {
        return title;
    }

    public int getCalcMouth() {
        return calcMouth;
    }
}
